//
// Created by Administrator on 2021/10/20.
//

#ifndef PARTJOB_C___NODE_H
#define PARTJOB_C___NODE_H
class Node
{
public:
    Node() : value(0), last(nullptr), next(nullptr) {}
    Node(int data, Node* last, Node* next) : value(data), last(last), next(next) {}
    void setData(int data) { value = data; }
    int getData() const { return value; }
    void setPrev(Node *newLast) { last = newLast; }
    Node* getPrev() const { return last; }
    void setNext(Node *newNext) { next = newNext; }
    Node* getNext() const { return next; }
private:
    int value;
    Node* last;
    Node* next;
};
#endif //PARTJOB_C___NODE_H
